// pages/discount/discount.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    calassList:[
 {name:'雪王折扣',
        term:[
            {
              "image": "../../images/discount-01.png",
              "title": "棒打鲜橙",
              "pickup": true,
              "introduce": "棒打鲜橙超给力，一杯满满补维C",
              "price": "7.00",
              "norms": {
                  "weight": "450g"
              },
              "id":"1"
          },
          {
              "image": "../../images/discount-02.png",
              "title": "牛奶三拼",
              "pickup": false,
              "introduce": "喝了不上火，所以特别火",
              "price": "8.00",
              "norms": {
                  "weight": "500g"
              },
              "id":"2"
          },
          {
              "image": "../../images/discount-03.png",
              "title": "满杯百香果",
              "pickup": true,
              "introduce": "酸酸甜甜满杯香，快来一杯尝一尝",
              "price": "8.00",
              "norms": {
                  "weight": "250g"
              },
              "id":"3"
          },
          { "image": "../../images/discount-03.png",
              "title": "蜜桃四季春",
              "pickup": false,
              "introduce": "蜜桃四季春，四季桃花运",
              "price": "6.00",
              "norms": {
                  "weight": "100g"
              },
              "id":"4"
          }
        ]
      }
    ]
  },
  gotoorder(){
    wx.switchTab({
        url: '/pages/order/order'
    });
      
}
})